<template>
	<view class="item" @tap='handleClick()'>
		<image :src="item.icon" mode='widthFix' class="icon"></image>
		<view class="title">
			{{item.title}}
		</view>
		<view class="more">></view>
	</view>
</template>

<script>
	
	export default {
		
		props:{
			item:{
				type: Object,
				default: function () {}
			}
		},
		methods: {
			handleClick(){
				this.$emit('click')
			}
		},
	}
</script>

<style scope lang="scss">
	.item{
		position: relative;
		padding: 0 32rpx;
		display: flex;
		align-items: center;
		height: 100rpx;
		font-size: 24rpx;;
		background-color: #FFFFFF;
		margin-bottom: 20rpx;
		.icon{
			width: 36rpx;
		}
		.title{
			margin-left: 24rpx;
			color: #5a5a5a;
		}
		.more{
			position: absolute;
			right: 32rpx;
		}
	}
</style>
